package com.wanggan.design.abstractFactory;

/**
 * @author wanggan
 */
public enum  HumanEnum {
    //把世界上所有人类型都定义出来
    YelloMaleHuman("YellowMaleHuman"),
    
    YelloFemaleHuman("YellowFemaleHuman"),
    
    WhiteFemaleHuman("WhiteFemaleHuman"),
    
    WhiteMaleHuman("WhiteMaleHuman"),
    
    BlackFemaleHuman("BlackFemaleHuman"),
    
    BlackMaleHuman("BlackMaleHuman");
    
    private String value;
    //定义构造函数，目的是Data(value)类型的相匹配
    
    private HumanEnum(String value){
        this.value = value;
    }
    
    public String getValue(){
        return "com.wanggan.design.abstractFactory.human."+this.value;
    }
}
